package nl.windgazer.arachne.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Used to automatically include a JavaScript that introduces a new cufón font to the page.
 * Cufón must be included specifically in the com.shoqolate.cufon package and named '[fontface].font.js'.
 * Exactly as they are named and packaged when rendered by cufón.
 *
 * @see org.apache.tapestry5.annotations.Path
 * @see org.apache.tapestry5.annotations.IncludeJavaScriptLibrary
 */
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface IncludeCufon {

	/**
     * One or more paths to be injected. Symbols in the path will be expanded.
     */
    String[] value();

    /**
     * Replacement target, css-selector style. To specify which font-face to use, follow
     * the selector by a colon (|) and the font-face. Example:<br />
     * h1, h2, .test h3|My Font-Face
     */
    String[] replace();
}
